package com.psjj.privilege.po;

import java.util.List;

/**
 * @author : 陈磊
 * @date : 2021-11-15
 * @desc : 权限表
 */
public class Privilege {
    /*** 权限主键*/
    private Integer mid;
    /*** 菜单名字*/
    private String menuname;
    /*** 菜单的访问路径*/
    private String url;
    /*** 父级菜单id*/
    private Integer pid;
    /*** 权限的选中状态*/
    private boolean checked = false;
    /**菜单的打开状态*/
    private boolean open = true;
    //表示当前菜单的子菜单 一对多的关系
    private List<Privilege> children;

    public List<Privilege> getChildren() {
        return children;
    }

    public void setChildren(List<Privilege> children) {
        this.children = children;
    }

    public boolean isChecked() {
        return checked;
    }

    public void setChecked(boolean checked) {
        this.checked = checked;
    }

    public boolean isOpen() {
        return open;
    }

    public void setOpen(boolean open) {
        this.open = open;
    }

    public Integer getMid() {
        return mid;
    }

    public void setMid(Integer mid) {
        this.mid = mid;
    }

    public String getMenuname() {
        return menuname;
    }

    public void setMenuname(String menuname) {
        this.menuname = menuname;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    @Override
    public String toString() {
        return "Privilege{" +
                "mid=" + mid +
                ", menuname='" + menuname + '\'' +
                ", url='" + url + '\'' +
                ", pid=" + pid +
                '}';
    }
}